body {
  height: 100vh;
  width: 100vw;
  background-color: rgb(0, 0, 0);
  position: relative;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a{
  text-decoration: none;
  color: rgba(0, 255, 21, .7);
  
}

//退按钮样式
.tui {
  position: absolute;
  top: 110px;
  margin: 0 auto;
  right: 0;
  left: 0;
  width: 30px;
  height: 30px;
  background: url("../imgs/退.png") center center no-repeat;
  background-size: 30px auto;
  //  opacity: 0.8;
  display: none;
}
//工具div
.w {

  position: absolute;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  width: 80%;
  max-width: 1000px;
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(0, 255, 21, .6);
  border-radius: 20px;
  margin: 0 auto;
  top: 150px;
  left: 0;
  right: 0;
  z-index: 99;
  display: none;
  padding: 20px;
//w里面的方块盒子
  div {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    transition: 0.6s;
    margin: 5px;
    border: 1px solid rgba(0, 255, 21, .3);
    // border-radius: 50%;

    p {
      position: absolute;
      height: 16px;
      font-size: 12px;
      width: 200%;
      top: 0px;
      color: rgba(0, 255, 21, .7);
      opacity: 0;
      text-align: center;
      transition: 1s;
    }

    a {
      position: absolute;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      height: 100%;
     
     

      font-size: 12px;
      color: rgba(0, 255, 21, .7);
      padding: 0 5px;
      transition: 0.8s;

      //鼠标移入显示放大
      &:hover {
        transform: scale(1.2);
      }
    }

    &:hover {
      transform: scale(1.1);
    }

  }




}

//画布
canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -99;
}

//导航栏
.nav {
  position: absolute;
  margin: 0 auto;
  left: 0;
  right: 0;
  display: inline-block;
  max-width: 1500px;
  width: 100%;
  height: 50px;
  margin: 0 auto;
  color: rgba(0, 255, 21, .7);
.center{
  position: absolute;
  width: 200px;
  top: 22px; 
  left: 20%;
  .text{
    margin-top: 10px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 130%;
    opacity: 0;
    padding-left: 6px;
    transition: 0.3s;

  }
  input{
    outline:none;
    width: 25px;
    height: 25px;
    background-color: rgba(255, 255, 255, 0);
    color: rgba(0, 255, 21, .5);
    border: 1px solid rgba(0, 255, 21, .7);
    box-shadow: 0 0 2px 1px rgba(255, 255, 255, 0.367);
    border-radius: 13px;
    padding-left: 5px;
    transition: 0.5s;
    &::-webkit-input-placeholder{
      font-size: 12px;
      color:rgba(0, 255, 21, .5);
    
    }
  
  }
 
 
}
  .right {
    position: absolute;
    top: 20px;
    right: 3%;

    li {
      float: left;
      margin-right: 20px;
      cursor: pointer;
      list-style: none;
      transition: 0.6s;

      //鼠标移入显示放大
      &:hover {
        transform: scale(1.2);
      }
    }

    
  }

  .logo {
    position: absolute;
    left: 3%;
    top: 20px;
    width: 100px;
    height: 30px;
    background: url("../imgs/logo.png")-8px -12px no-repeat;
    background-size: 300px auto;
  }



}





//w盒子进入动画
@keyframes diamond-in-center {
  from {
    clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
  }

  to {
    clip-path: polygon(-50% 50%, 50% -50%, 150% 50%, 50% 150%);
  }
}

//w盒子退出动画
@keyframes diamond-out-center {
  from {
    clip-path: polygon(-50% 50%, 50% -50%, 150% 50%, 50% 150%);
  }

  to {
    clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
  }
}

//退按钮退出动画
@keyframes tui {
  0% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-20%);

  }

  60% {
    transform: translateY(100%);

  }

  100% {
    transform: translateY(-1000%);

  }

}

//退按钮进入动画
@keyframes jin {
  0% {
    transform: translateY(-1000%);


  }

  30% {
    transform: translateY(0);

  }

  60% {
    transform: translateY(-20%);

  }

  100% {
    transform: translateY(0);
  }

}